<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>项目圈-首页</title>
		<link rel="stylesheet" type="text/css" href="css/vue.css"/>
	</head>
	<body>
		<div id="app">
			<add>
				<h1 slot="one">one</h1>
				<h1 slot="two">two</h1>
				<h1></h1>
			</add>
		</div>
		
		<template id="myComponent">
			<div>
				<slot name="one">one</slot>
				<slot name="two">two</slot>
				<slot>Default</slot>
			</div>
		</template>
	</body>
	<script type="text/javascript" src="js/vue.js"></script>
	<script type="text/javascript" src="js/vueComponent.js"></script>
	<script type="text/javascript">
		var app = new Vue({
			el:'#app',
			components:{
				"add":{
					template:'#myComponent'
				}
			}
		});
	</script>
</html>
